import Qt 4.7

Rectangle {
    id: popupButtons0
    height: 50
    width: 150
    color: "#00ADEF"
    radius: 6

    //property bool toggled: false
    property int itemNumber: 0

    signal editClicked
    signal removeClicked

    Text {
        x: 15; y: 16
        color: "white"
        text: "Editar"
        font.pointSize: 5
    }
    Text {
        x: 77; y: 16
        color: "white"
        text: "Remover"
        font.pointSize: 5
    }
    Rectangle {
        id: separatePopupButton
        x: 71; y: 0
        width: 1; height: 50
        color: "#4EC6F4"
    }
    MouseArea {
        anchors.fill: parent
        onClicked: {
            if (mouseX >= 0 && mouseX <= 70) {
                console.debug("Editing");
                popupButtons0.editClicked();
            }
            else {
                console.debug("Removing");
                popupButtons0.removeClicked();
            }
        }
    }
}
